﻿#ifndef TOPOSETTING_H
#define TOPOSETTING_H

#include "topo.h"

#include <QList>
#include <QMap>
#include <QString>


//寄存器 3、4
class TopoInfo
{
   static TopoInfo * instance;
public:
    TopoInfo();

    static  TopoInfo * Instance();


          bool loadSetting();


      void init_topo_default();
      bool load_topo_setting();
      void save_topo_setting();

      int node_count;
      QMap<int, TOPO_NODE *> node_map;

     void query_node_info();

    // static void query_online_node();    //80 ~~ 88

    // static void query_node_phy_count(); //5 0

    // static void query_node_phy_info();  //5 1

    // static void query_node_phy_target();  //5 2
};

#endif // TOPOSETTING_H
